package com.isoftstone.plugin.shiro;


/**
 * 用户和密码（包含验证码）令牌类
 * @author
 * @version
 */
public class MyUsernamePasswordToken extends org.apache.shiro.authc.UsernamePasswordToken {

    private static final long serialVersionUID = 1L;

    private String captcha;
    private boolean mobileLogin;

    public MyUsernamePasswordToken() {
        super();
    }

    public MyUsernamePasswordToken(String username, char[] password,
                                   boolean rememberMe, String host, String captcha, boolean mobileLogin) {
        super(username, password, rememberMe, host);
        this.captcha = captcha;
        this.mobileLogin = mobileLogin;
    }
    public MyUsernamePasswordToken(String username, String password) {
        super(username, password);
    }
    public MyUsernamePasswordToken(String username, String password,String system) {
        super(username, password,system);
    }
    public String getCaptcha() {
        return captcha;
    }

    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }

    public boolean isMobileLogin() {
        return mobileLogin;
    }

}